package com.wzy.ssm.notice.service.impl;

import org.springframework.stereotype.Service;
import com.wzy.ssm.notice.model.NoticeList;
import com.wzy.ssm.notice.model.NoticeListExample;

import java.util.List;
import com.wzy.ssm.notice.mapper.NoticeListMapper;
import com.wzy.ssm.notice.service.NoticeListService;

@Service
public class NoticeListServiceImpl implements NoticeListService{

    private NoticeListMapper mapper;

    //通过构�?�器注入mapper
    public NoticeListServiceImpl(NoticeListMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public long countByExample(NoticeListExample example) {
        return mapper.countByExample(example);
    }

    @Override
    public int deleteByExample(NoticeListExample example) {
        return mapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String noticeListId) {
        return mapper.deleteByPrimaryKey(Integer.valueOf(noticeListId));
    }



    @Override
    public int insert(NoticeList record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(NoticeList record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<NoticeList> selectByExample(NoticeListExample example) {
        return mapper.selectByExample(example);
    }

    @Override
    public NoticeList selectByPrimaryKey(String noticeListId) {
        return mapper.selectByPrimaryKey(Integer.valueOf(noticeListId));
    }

    @Override
    public int updateByExampleSelective(NoticeList record,NoticeListExample example) {
        return mapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(NoticeList record,NoticeListExample example) {
        return mapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(NoticeList record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(NoticeList record) {
        return mapper.updateByPrimaryKey(record);
    }

}
